package io.renren.service.impl;


import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.dao.AppColumnDao;
import io.renren.entity.AppColumn;
import io.renren.service.AppCloumnService;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service("appCloumnService")
public class AppCloumnServiceImpl extends ServiceImpl<AppColumnDao, AppColumn> implements AppCloumnService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<AppColumn> page = this.selectPage(
                new Query<AppColumn>(params).getPage(),
                new EntityWrapper<>()
        );

        return new PageUtils(page);
    }

}
